package com.example.demo.mapper;

import com.example.demo.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ImgMapper {
    //上传学生头像
    @Update("update user_stu set img = #{img} where account = #{account}")
    void updateImg(User user);

    //加载学生头像
    @Select("select img from user_stu where account = #{account}")
    User getImg(User user);
}
